/**
 * Created by 小敏哥 on 2018/1/5.
 */
import commonAction from "../../../../../js/actions/commonAction";
import {CAR_DETAIL} from "./actionsTypes";
export const carDetail = data => ({type: CAR_DETAIL, data: data});//订单列表


export const getCarDetail=(data,callBack)=>{
    return commonAction.simplePost(data,'emsc-partner/b/carViola/selectCar.ajax',carDetail,callBack);
};

export const updateCar=(data,callBack)=>{
    return commonAction.simplePost(data,'emsc-partner/b/carViola/updateCar.ajax',undefined,callBack);
};

export const deleteCar=(data,callBack)=>{
    return commonAction.simplePost(data,'emsc-partner/b/carViola/deleteCar.ajax',undefined,callBack);
};